x86: move pv_emul_is_mem_write to pv/emulate.h
authorWei Liu <wei.liu2@citrix.com>
Wed, 19 Jul 2017 15:15:48 +0000 (16:15 +0100)
committerWei Liu <wei.liu2@citrix.com>
Fri, 18 Aug 2017 12:59:06 +0000 (13:59 +0100)
commit08143c5b6c1fc1e67e0d86cbff09aa3c2d46b93a
tree62e8d3474447946446ba4b3ea4d21a825e3246c3
parent5b98da4197df39a76e0bf20ac4fbfce87aaec2b5
x86: move pv_emul_is_mem_write to pv/emulate.h

Make it a static inline function in pv/emulate.h.  In the mean time it
is required to include pv/emulate.h in x86/mm.c.

The said function will be used later by different emulation handlers
in later patches.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/mm.c
xen/arch/x86/pv/emulate.h